package com.song.service.impl;

import com.song.dao.deptDao;
import com.song.pojo.dept;
import com.song.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author Klys
 * @Date 2022/3/15 18:44
 * @Version 1.0
 */
@Service
public class DeptServiceImpl implements DeptService {


    @Autowired
    private deptDao deptDao;

    @Override
    public boolean addDept(dept dept) {
        return deptDao.addDept(dept);
    }

    @Override
    public dept queryById(Long id) {
        return deptDao.queryById(id);
    }

    @Override
    public List<dept> queryAll() {
        return deptDao.queryAll();
    }
}
